<?php

namespace App\Admin\Extensions;

use Encore\Admin\Admin;

class VoiceCallOp extends BaseAction
{
    protected function render()
    {
        Admin::script($this->script($this->actionUrl));
        $failbtn = $this->buildButton('fail', '关闭话单', ['id' => $this->id, 'extra' => $this->row->call_type]);
        $str = [$failbtn];
        return implode('<br/><br/>', $str);
    }
}
